package summer_vacation.shilaihong.threeday;

/**
 * Created by alh on 2015/9/5.
 */
public class N10 {
    public static void main(String[] args){
        int N=12;
       boolean [] a=new boolean[N];
        for(int i=0;i<N;i++)a[i]=true;
            int i=0;
            int s=0;
            int cnt=0;
            while(true){
                if(a[i]) s++;
                if(s==5){
                    System.out.println((i+1));
                    a[i]=false;
                    s=0;
                    cnt++;
                      if(cnt==N)break;
                }
            i++;
            if(i==N) i=0;
        }

    }
}
